//
//  addressEditViewController.m
//  giuseppe
//
//  Created by Apple on 15/8/18.
//  Copyright (c) 2015年 GiantUmbrella. All rights reserved.
//

#import "addressEditViewController.h"
#import "define.h"

@interface addressEditViewController (){
    
    UITextField *nameTextField;
    UITextField *mobileTextField;
    UITextField *addressTextField;
    UITextField *postCodeTextField;
    
}

@end

@implementation addressEditViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    

    //自定义的导航栏
    UIView *navView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, 64)];
    navView.backgroundColor = [UIColor whiteColor];
    navView.alpha = 0.90;
    
    UIButton *backButton = [UIButton buttonWithType:UIButtonTypeCustom];
    backButton.frame = CGRectMake(10, 33, 27, 16);
    [backButton setBackgroundImage:[UIImage imageNamed:@"back"] forState:UIControlStateNormal];
    [backButton addTarget:self action:@selector(back) forControlEvents:UIControlEventTouchUpInside];
    
    UILabel *titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(kScreenWidth/2-75, 20, 150, 40)];
    titleLabel.text = @"编辑";
    titleLabel.textAlignment = NSTextAlignmentCenter;
    
    UIButton *editButton = [UIButton buttonWithType:UIButtonTypeCustom];
    editButton.frame = CGRectMake(kScreenWidth-10-50, 33, 50, 16);
    [editButton setTitle:@"完成" forState:UIControlStateNormal];
    [editButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [editButton addTarget:self action:@selector(finish) forControlEvents:UIControlEventTouchUpInside];
    
    [self _initView];
    
    [navView addSubview:backButton];
    [navView addSubview:titleLabel];
    [navView addSubview:editButton];
    [self.view addSubview:navView];

    
}

- (void)_initView{
    
    
    
    
    
}

- (void)back{
    
    [self.navigationController popViewControllerAnimated:YES];
    
}

- (void)finish{
    
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
